<?php
('Access-Control-Allow-Origin：*');
include("../config/mysql.php");
$db = new mysql();
$id = $_POST["id"];
//文件上传
$downLoadPath = $_FILES["studentData"]["name"];
$uploadPath = "D:/wwwroot/boyeit.com/enroll/upload/";
move_uploaded_file($_FILES["studentData"]["tmp_name"], $uploadPath . $downLoadPath);
$sql = "update students set downLoadPath = '{$downLoadPath}' where id = '{$id}'";
echo $db->Query($sql);
?>